<html>
<body>
<h2>Hello World!</h2>
/pages/index.jsp
<button onclick="order()">order</button>
<button onclick="order2()">order2</button>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script>
    function order() {
        $.ajax({
            url: "http://localhost:8080/cw/minip/order/order",
            // url: "http://localhost:8085/minip/orderi/add",
            method: "POST",
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            data: {"data": "eyJjbGllbnQiOiJ3eCIsInNob3BpZCI6IjI3IiwidW5pb25pZCI6InJhbmRvbS00OWI5Y2ZiZmUwYTM0ZTY2YTc0ZTUxMDcyIiwidGFibGVpZCI6IjM3IiwidGFzdGVzIjoiIiwiZWRpYmxlbWV0aG9kIjoic2hvcCIsImdvb2RzbGlzdCI6W3sibmFtZSI6IuWkp%2BS7vSIsImZlZSI6NSwiZmluYWxGZWUiOjUsInF1YW50aXR5IjoiMSIsImdvb2RzSWQiOiI0IiwiZ29vZHNOYW1lIjoi6Z2i5p2hIiwic3BlY0lkIjoiNCJ9XX0="},
            success: function (data) {
                console.log(data);
            }
        });
    }

    function order2() {
        $.ajax({
            // url: "http://localhost:8080/cw/minip/order/order",
            url: "http://localhost:8085/minip/orderi/add",
            method: "POST",
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            data: {"data": "eyJjbGllbnQiOiJ3eCIsInNob3BpZCI6IjI3IiwidW5pb25pZCI6InJhbmRvbS00OWI5Y2ZiZmUwYTM0ZTY2YTc0ZTUxMDcyIiwidGFibGVpZCI6IjM3IiwidGFzdGVzIjoiIiwiZWRpYmxlbWV0aG9kIjoic2hvcCIsImdvb2RzbGlzdCI6W3sibmFtZSI6IuWkp%2BS7vSIsImZlZSI6NSwiZmluYWxGZWUiOjUsInF1YW50aXR5IjoiMSIsImdvb2RzSWQiOiI0IiwiZ29vZHNOYW1lIjoi6Z2i5p2hIiwic3BlY0lkIjoiNCJ9XX0="},
            success: function (data) {
                console.log(data);
            }
        });
    }
</script>
</html>
